package com.base.pd.agent;

public class AgentSwitch extends Agent {

	private boolean lastMove = false ; 
	
	public AgentSwitch() {
		super("Alternately","Developed by group 1");
	}

	@Override
	public boolean cooperate() {
		return this.lastMove ; 
	}

	@Override
	public void update(int round, boolean myMove, boolean otherMove,
			int myScore, int otherScore) {
		this.lastMove = !this.lastMove;
	}

	@Override
	public void init() {

	}

}
